package com.sdleyou.treepro.common.service;

import com.sdleyou.treepro.common.model.vo.AchievementVO;
import com.sdleyou.treepro.common.model.vo.CardVO;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;

public interface AchievementManager {

    /**
     * 创建成就
     */
    void createAchievement(@RequestParam(name = "total_target") @NotEmpty(message = "全网目标种树量") Long totalTarget,
                           @RequestParam(name = "current_target") @NotEmpty(message = "全网当前种树量")Long currentTarget,
                           @RequestParam(name = "total_step") @NotEmpty(message = "累计捐赠步数")Long totalStep);

    /**
     * 更新成就
     */
    void updateAchievement(@RequestParam(name = "a_id") @NotEmpty(message = "id不能为空")String aId,
                           @RequestParam(name = "total_target")Long totalTarget,
                           @RequestParam(name = "current_target")Long currentTarget,
                           @RequestParam(name = "total_step")Long totalStep);

    /**
     * 获取成就详情
     */
    AchievementVO getAchievement(String aId);

    /**
     * 获取成就详情
     */
    AchievementVO getAchievement();
}
